<template>
	<view class="cu-chat">
		<template v-if="message.message_type=='text'">
			<chat-text :message="message" :current_images="current_images"></chat-text>
		</template>
		<template v-else-if="message.message_type=='image'">
			<chat-image :message="message"  :current_images="current_images"></chat-image>
		</template>
		<template  v-else-if="message.message_type=='audio'">
			<chat-audio :message="message" :current_images="current_images"></chat-audio>
		</template>
		<template  v-else-if="message.message_type=='file'">
			<chat-file :message="message" :current_images="current_images"></chat-file>
		</template>
		<template  v-else-if="message.message_type=='video'">
			<chat-video :message="message" :current_images="current_images"></chat-video>
		</template>
		<template  v-else-if="message.message_type=='two-click-avatar'">
			<chat-two-click-avatar :message="message" :current_images="current_images"></chat-two-click-avatar>
		</template>
		<template  v-else-if="message.message_type=='two-click-text'">
			<chat-two-click-text :message="message" :current_images="current_images"></chat-two-click-text>
		</template>
		<template  v-else-if="message.message_type=='random-chat-apply'">
			<chat-random-chat-apply :message="message" :current_images="current_images"></chat-random-chat-apply>
		</template>
		<template  v-else-if="message.message_type=='post'">
			<chat-post :message="message" :current_images="current_images"></chat-post>
		</template>
	</view>
					

</template>

<script>
	export default {
		data(){
			return {}
		},
		props: {
			message: {
				type: [Object],
				default:()=>{
					return {}
				}
			},
			current_images:{
				type:[Array],
				default:()=>{
					return []
				}
			},
			
		},
	}
</script>
	
<style>

</style>
